{% extends 'news/base.html' %}

{% block style %}
    {% load static %}
    <link rel="stylesheet" href="{% static 'news/css/pwd.css' %}">
    <link rel="stylesheet" href="{% static 'news/css/people.css'%}">
{% endblock %}


{% block c_right %}
    <form action="{% url 'news:upload' %}" method="post" enctype="multipart/form-data">
    {% csrf_token %}
        <div id="peo_1">
            <div class="peo_2">
                <div></div><span>个人资料</span>
            </div>
            <div class="peo_3">
                <span>头像:</span>
                <img src=" {% url 'media' author.photo %}" alt="" >
                <input type="file" value="点击修改" class="dian" name="photo">
            </div>
            <div class="peo_4">
                <span>昵称:</span>

                <input type="text" placeholder="这是我的昵称" name="nick_name" src="{% url 'media' author.nick_name %}">
            </div>
            <div class="peo_5">
                <span>手机号:</span>
                <input type="text" placeholder="12345678" name="phone_num">
            </div>
            <input type="submit" value="保存" class="peo_6">
        </div>

    </form>

{% endblock %}